<?php
define("PATH_CORE",realpath(__DIR__."/../php/core"));

$uri = $_SERVER["REQUEST_URI"];
if(strpos($uri,"/index.php/api/") === 0 || strpos($uri,"/api/") === 0){
    require PATH_CORE."/api.php";
}
